package org.nokatag.dbgrid;

public class GridBoxItem {

	private String autosize = "true";
	private String grid = null;
	private String autowidth = "true";
	private String pid = null;
	
	
	public GridBoxItem(String grid,String autosize,String autowidth,String pid){
		this.autosize = autosize;
		this.grid = grid;
		this.autowidth = autowidth;
		this.pid = pid;
	}
	public boolean equals(Object obj) {  
        if(obj == null) return false;  
        if(this == obj) return true;  
        if(obj instanceof GridBoxItem){   
        	GridBoxItem gridbox =(GridBoxItem)obj;  
            if(gridbox.grid.equals(this.grid)){
            	return true;  
            }
           }  
        return false;  
    }  
	public int hashCode() {  
        return grid.hashCode();
    } 
	public String getAutosize() {
		return autosize;
	}
	public void setAutosize(String autosize) {
		this.autosize = autosize;
	}
	public String getGrid() {
		return grid;
	}
	public void setGrid(String grid) {
		this.grid = grid;
	}
	public String getAutowidth() {
		return autowidth;
	}
	public void setAutowidth(String autowidth) {
		this.autowidth = autowidth;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
}
